package com.jhte.scheduleJob;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableDiscoveryClient
@EnableScheduling
@ServletComponentScan
// 启注解事务管理，等同于xml配置方式的 <tx:annotation-driven />
@EnableTransactionManagement
@SpringBootApplication
public class ScheduleJobApplication {

	private static Logger logger = LoggerFactory.getLogger(ScheduleJobApplication.class);

	public static void main(String[] args) {
		SpringApplication.run(ScheduleJobApplication.class, args);
		logger.info("ScheduleJob Application Started!");
	}
}
